package com.apesay.redis.client;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class RedisServer {
    public static void main(String[] args) {
        ServerSocket server = null;
        try {
            server = new ServerSocket(6379);
            Socket socket = server.accept();
            byte[] chars = new byte[256];
            socket.getInputStream().read(chars);
            System.out.println(new String(chars));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
